<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

class LogRouteMiddleware
{
    public function handle(Request $request, Closure $next)
    {
        Log::info('Route middleware hit', [
            'url' => $request->url(),
            'method' => $request->method(),
            'all_parameters' => $request->all()
        ]);

        return $next($request);
    }
} 